From: Jasper St. Pierre Date: Mon, 10 Jun 2013 19:53:56 +0000 (-0400) Subject: network: Remove overflow of VPN configurations X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4041 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f4051e810e090ff24e27320c9670772961b17179;p=gnome-shell.git network: Remove overflow of VPN configurations It's unlikely that somebody has more than five VPN connections configured, and the code is https://bugzilla.gnome.org/show_bug.cgi?id=701954 --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 594e14d59..640cfe207 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1423,15 +1423,7 @@ const NMVPNSection = new Lang.Class({ for(let j = 0; j < this._connections.length; ++j) { let obj = this._connections[j]; obj.item = this._createConnectionItem(obj); - - if (j >= NUM_VISIBLE_NETWORKS) { - if (!this._overflowItem) { - this._overflowItem = new PopupMenu.PopupSubMenuMenuItem(_("More…")); - this.section.addMenuItem(this._overflowItem); - } - this._overflowItem.menu.addMenuItem(obj.item); - } else - this.section.addMenuItem(obj.item); + this.section.addMenuItem(obj.item); } } else { this.section.actor.hide()